Optimal. Leaf size=26 \[ \frac{a \log (\sin (e+f x))}{f}-\frac{b \log (\cos (e+f x))}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0292719, antiderivative size = 26, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.105, Rules used = {3625, 3475} \[ \frac{a \log (\sin (e+f x))}{f}-\frac{b \log (\cos (e+f x))}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3625
Rule 3475
Rubi steps
\begin{align*} \int \cot (e+f x) \left (a+b \tan ^2(e+f x)\right ) \, dx &=a \int \cot (e+f x) \, dx+b \int \tan (e+f x) \, dx\\ &=-\frac{b \log (\cos (e+f x))}{f}+\frac{a \log (\sin (e+f x))}{f}\\ \end{align*}
Mathematica [A] time = 0.039285, size = 34, normalized size = 1.31 \[ \frac{a (\log (\tan (e+f x))+\log (\cos (e+f x)))}{f}-\frac{b \log (\cos (e+f x))}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.043, size = 27, normalized size = 1. \begin{align*} -{\frac{b\ln \left ( \cos \left ( fx+e \right ) \right ) }{f}}+{\frac{a\ln \left ( \sin \left ( fx+e \right ) \right ) }{f}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.07368, size = 42, normalized size = 1.62 \begin{align*} -\frac{b \log \left (\sin \left (f x + e\right )^{2} - 1\right ) - a \log \left (\sin \left (f x + e\right )^{2}\right )}{2 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.12898, size = 113, normalized size = 4.35 \begin{align*} \frac{a \log \left (\frac{\tan \left (f x + e\right )^{2}}{\tan \left (f x + e\right )^{2} + 1}\right ) - b \log \left (\frac{1}{\tan \left (f x + e\right )^{2} + 1}\right )}{2 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.627207, size = 58, normalized size = 2.23 \begin{align*} \begin{cases} - \frac{a \log{\left (\tan ^{2}{\left (e + f x \right )} + 1 \right )}}{2 f} + \frac{a \log{\left (\tan{\left (e + f x \right )} \right )}}{f} + \frac{b \log{\left (\tan ^{2}{\left (e + f x \right )} + 1 \right )}}{2 f} & \text{for}\: f \neq 0 \\x \left (a + b \tan ^{2}{\left (e \right )}\right ) \cot{\left (e \right )} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.22549, size = 47, normalized size = 1.81 \begin{align*} \frac{a \log \left (\sin \left (f x + e\right )^{2}\right ) - b \log \left (-\sin \left (f x + e\right )^{2} + 1\right )}{2 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]